﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XcoAppSpaces.Contracts.Messaging;
using System.Runtime.Serialization;

namespace test.XcoAppSpaces.Core.Communication.Helpers
{
	[Serializable]
	class SerializationErrorMessage : RemoteMessage, ISerializable
	{

		public SerializationErrorMessage() : base(null)
		{
		}

		#region ISerializable Members

		public SerializationErrorMessage(SerializationInfo info, StreamingContext context) : base(null)
		{
			throw new Exception("TEST not deserializable!!!");
		}

		public void GetObjectData(SerializationInfo info, StreamingContext context)
		{
		}

		#endregion
	}
}
